projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a84281e
)
* subr.el (event-basic-type): Deal with listy events properly.
author
Jim Blandy
<jimb@redhat.com>
Thu, 17 Jun 1993 00:16:29 +0000
(
00:16
+0000)
committer
Jim Blandy
<jimb@redhat.com>
Thu, 17 Jun 1993 00:16:29 +0000
(
00:16
+0000)
lisp/subr.el
patch
|
blob
|
history
diff --git
a/lisp/subr.el
b/lisp/subr.el
index 22662dd068744786428013a4d03ad76ca9e663c4..ad96cc54ee34938d4da78ebc165183be4cca680a 100644
(file)
--- a/
lisp/subr.el
+++ b/
lisp/subr.el
@@
-285,6
+285,8
@@
The elements of the list may include `meta', `control',
(defun event-basic-type (event)
"Returns the basic type of the given event (all modifiers removed).
The value is an ASCII printing character (not upper case) or a symbol."
+ (if (consp event)
+ (setq event (car event)))
(if (symbolp event)
(car (get event 'event-symbol-elements))
(let ((base (logand event (1- (lsh 1 18)))))